package com.yanqu.road.entity.activity.biaoju.config;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;

@FieldTypeAnnotation(tableName = "t_s_activity_biaoju_place_rank", desc = "镖局地点排名加成表")
public class BiaoJuCityRankConfig extends DataObject {
    @FieldTypeAnnotation(select = true, isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "id", isIndex = true)
    private int id;
    @FieldTypeAnnotation(desc = "地点档位最低排名")
    private int rank;
    @FieldTypeAnnotation(desc = "结算加成（千分比")
    private int incomeAdd;

    public BiaoJuCityRankConfig(ResultSet rs) throws SQLException {
        this.activityId = rs.getInt("activityId");
        this.id = rs.getInt("id");
        this.rank = rs.getInt("rank");
        this.incomeAdd = rs.getInt("incomeAdd");
    }

    public int getActivityId() {
        return activityId;
    }

    public int getId() {
        return id;
    }

    public int getRank() {
        return rank;
    }

    public int getIncomeAdd() {
        return incomeAdd;
    }
}
